package com.luzh.myspring.beans.factory.support;

import com.luzh.myspring.beans.BeanException;
import com.luzh.myspring.core.io.Resource;
import com.luzh.myspring.core.io.ResourceLoader;

/**
 * bean定义加载器
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeanException;

    void loadBeanDefinitions(Resource... resources) throws BeanException;

    void loadBeanDefinitions(String location) throws BeanException;

    void loadBeanDefinitions(String... locations) throws BeanException;

}
